<TagAttribute("fog","fog ","????","????",1,396)>
Public Class FOG_TAG
Inherits HaloTag
Public Const Extension as String = "fog"
Public Const FourCC as String = "fog "
Public Const ParentFourCC as String = "????"
Public Const GrandParentFourCC as String = "????"
Public Const [Version] as Short = 1
Public Const HeaderLength as Integer = 396

''' <summary>
''' Setting <atmosphere dominant> prevents polygon popping when the atmospheric fog maximum den
''' </summary>
#Region "FLAGS"

''' <summary>
''' 
''' </summary>
<TagField("flags", 1, 20)>
Public flags as Integer

''' <summary>
''' 
''' </summary>
<TagField("", 4, -1)>
Public padding as Byte()

''' <summary>
''' 
''' </summary>
<TagField("", 76, -1)>
Public padding_1 as Byte()

''' <summary>
''' 
''' </summary>
#End Region
#Region "DENSITY"

''' <summary>
''' 
''' </summary>
<TagField("", 4, -1)>
Public padding_2 as Byte()

''' <summary>
''' planar fog density is clamped to this value
''' </summary>
<TagField("maximum density:[0,1]", 1, 0)>
Public maximum_density as Single

''' <summary>
''' 
''' </summary>
<TagField("", 4, -1)>
Public padding_3 as Byte()

''' <summary>
''' the fog becomes opaque at this distance from the viewer
''' </summary>
<TagField("opaque distance:world units", 1, 0)>
Public opaque_distance as Single

''' <summary>
''' 
''' </summary>
<TagField("", 4, -1)>
Public padding_4 as Byte()

''' <summary>
''' the fog becomes opaque at this distance from its surface
''' </summary>
<TagField("opaque depth:world units", 1, 0)>
Public opaque_depth as Single

''' <summary>
''' 
''' </summary>
<TagField("", 8, -1)>
Public padding_5 as Byte()

''' <summary>
''' the fog becomes water at this distance from its surface
''' </summary>
<TagField("distance to water plane:world units", 1, 0)>
Public distance_to_water_plane as Single

''' <summary>
''' 
''' </summary>
#End Region
#Region "COLOR"

''' <summary>
''' 
''' </summary>
<TagField("color", 3, 2)>
Public color as Single()

''' <summary>
''' 
''' </summary>
#End Region
#Region "SCREEN LAYERS"

''' <summary>
''' 
''' </summary>
<TagField("flags", 1, 19)>
Public flags_1 as Short

''' <summary>
''' 0 layers disables the effect
''' </summary>
<TagField("layer count:[0,4]", 1, 23)>
Public layer_count as Short

''' <summary>
''' 
''' </summary>
<TagField("distance gradient:world units", 2, 1)>
Public distance_gradient as Single()

''' <summary>
''' 
''' </summary>
<TagField("density gradient:[0,1]", 2, 1)>
Public density_gradient as Single()

''' <summary>
''' do NOT set this to the same value as maximum_depth
''' </summary>
<TagField("start distance from fog plane:world units", 1, 0)>
Public start_distance_from_fog_plane as Single

''' <summary>
''' 
''' </summary>
<TagField("", 4, -1)>
Public padding_6 as Byte()

''' <summary>
''' 0 defaults to planar fog color
''' </summary>
<TagField("color", 1, 4)>
Public color_1 as Integer

''' <summary>
''' 
''' </summary>
<TagField("rotation multiplier:[0,1]", 1, 0)>
Public rotation_multiplier as Single

''' <summary>
''' 
''' </summary>
<TagField("strafing multiplier:[0,1]", 1, 0)>
Public strafing_multiplier as Single

''' <summary>
''' 
''' </summary>
<TagField("zoom multiplier:[0,1]", 1, 0)>
Public zoom_multiplier as Single

''' <summary>
''' 
''' </summary>
<TagField("", 8, -1)>
Public padding_7 as Byte()

''' <summary>
''' 0 defaults to 1
''' </summary>
<TagField("map scale", 1, 0)>
Public map_scale as Single

''' <summary>
''' 
''' </summary>
<TagField("map", 16, 10)>
Public map as New TAG_REFERENCE

''' <summary>
''' 
''' </summary>
#End Region
#Region "SCREEN LAYER ANIMATION"

''' <summary>
''' 
''' </summary>
<TagField("animation period:seconds", 1, 0)>
Public animation_period as Single

''' <summary>
''' 
''' </summary>
<TagField("", 4, -1)>
Public padding_8 as Byte()

''' <summary>
''' 
''' </summary>
<TagField("wind velocity:world units per second", 2, 1)>
Public wind_velocity as Single()

''' <summary>
''' 0 defaults to 1
''' </summary>
<TagField("wind period:seconds", 2, 1)>
Public wind_period as Single()

''' <summary>
''' 
''' </summary>
<TagField("wind acceleration weight:[0,1]", 1, 0)>
Public wind_acceleration_weight as Single

''' <summary>
''' 
''' </summary>
<TagField("wind perpendicular weight:[0,1]", 1, 0)>
Public wind_perpendicular_weight as Single

''' <summary>
''' 
''' </summary>
<TagField("", 8, -1)>
Public padding_9 as Byte()

''' <summary>
''' 
''' </summary>
#End Region
#Region "SOUND"

''' <summary>
''' 
''' </summary>
<TagField("background sound", 16, 10)>
Public background_sound as New TAG_REFERENCE

''' <summary>
''' 
''' </summary>
<TagField("sound environment", 16, 10)>
Public sound_environment as New TAG_REFERENCE

''' <summary>
''' 
''' </summary>
<TagField("", 120, -1)>
Public padding_10 as Byte()
#End Region

End Class
